<template>
  <div class="wrap">
    <CategoryView title="美食">
      <template slot="content" slot-scope="{foods}">
        <ul>
          <li v-for="(item, index) in foods" :key="index">{{item}}</li>
        </ul>
        <!-- <div slot='links'>
          <a href="">更多美食</a>
        </div> -->
      </template>
    </CategoryView>
    <CategoryView title="游戏">
      <template slot="content" scope="{games}">
        <ol>
          <li v-for="(item, index) in games" :key="index">{{item}}</li>
        </ol>
        <!-- <div slot='links'>
          <a href="">单机游戏</a><a>双击游戏</a>
        </div> -->
      </template>
    </CategoryView>
  </div>
</template>

<script>
import CategoryView from './CategoryView.vue'
export default {
  name: 'SlotnameView',
  components: { CategoryView },
}
</script>

<style lang="less" scoped>
  .wrap {
    display: flex;
    justify-content: space-around;
  }
  img {
    width: 100%;
  }
  video {
    width: 100%;
  }
</style>